<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:f="livcos.org/ns/xslt/function"
  xmlns:job="livcos.org/ns/process/job"
  xmlns:c="livcos.org/ns/cosmos"
  xmlns:html="http://www.w3.org/1999/xhtml"
  exclude-result-prefixes="f c html">
  
  <xsl:import href="../../common/base.xsl"/>
	
	<xsl:param name="target"/>
	<xsl:param name="uri"/>
	
	<xsl:template match="/">
		<xsl:apply-templates select="*" mode="root"/>
	</xsl:template>
	
	<xsl:template match="*" mode="root">
		<job:feed stream="{$target}{$uri}"/>
	</xsl:template>
	
	<xsl:template match="html:*" mode="root">
		<job:feed stream="{$target}{$uri}">
			<xsl:apply-templates select="."/>
		</job:feed>
	</xsl:template>
	
	<xsl:template match="c:ObjectNotFound" mode="root">
	</xsl:template>
	
	<xsl:template match="@* | node()">
		<xsl:copy>
			<xsl:apply-templates select="@* | node()"/>
		</xsl:copy>
	</xsl:template>
	
	<xsl:template match="html:script">
	</xsl:template>
	
</xsl:stylesheet>
